package cn.com.bdqn.service.impl;

import cn.com.bdqn.dao.CstActivityDao;
import cn.com.bdqn.entity.CstActivity;
import cn.com.bdqn.service.CstActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CstActivityServiceImpl implements CstActivityService {

    @Autowired
    private CstActivityDao dao;

    @Override
    public int addCstActivity(CstActivity cstActivity) {
        return dao.addCstActivity(cstActivity);
    }

    @Override
    public int delCstActivity(Long atvId) {
        return dao.delCstActivity(atvId);
    }

    @Override
    public int updateCstActivity(CstActivity cstActivity) {
        return dao.updateCstActivity(cstActivity);
    }

    @Override
    public List<CstActivity> queryByAtvCustNo(String atvCustNo) {
        return dao.queryByAtvCustNo(atvCustNo);
    }

    @Override
    public CstActivity queryByAtvId(Long atvId) {
        return dao.queryByAtvId(atvId);
    }
}
